package com.qf.day03;

import java.lang.reflect.Array;
import java.util.Scanner;

public class lx1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第"+(1)+"个人的成绩");
        double v = sc.nextDouble();
        double max = v;
        double min = v;
        double avg = v;
        for (int i = 1; i < 5; i++) {
            System.out.println("请输入第"+(i+1)+"个人的成绩");
            double s = sc.nextDouble();
            if(s>max){
                max = s;
            }
            if(s<min){
                min = s;
            }
            avg+=s;
        }
        System.out.println("最大"+max);
        System.out.println("最小"+min);
        System.out.println("平均"+(avg/5.0));
//        111
    }
}
